import { createRouter, createWebHashHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      component: HomeView,
    },
    {
      path: "/admin",
      name: "admin",
      component: () => import("../views/Admin.vue"),
    },
    {
      path: "/errorAnswer",
      name: "errorAnswer",
      component: () => import("../views/ErrorAnswer.vue"),
    },
    {
      path: "/answer",
      name: "answer",
      component: () => import("../views/Answer.vue"),
    },
    {
      path: "/exam",
      name: "exam",
      component: () => import("../views/Exam.vue"),
    },
  ],
});

export default router;
